﻿<%@ Page Title="" Language="C#" MasterPageFile="~/QLVB/Admin/Admin.master" AutoEventWireup="true" CodeFile="QuanLyNguoiDung.aspx.cs" Inherits="QLVB_Admin_QuanLyNguoiDung" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style4
        {
            height: 15px;
        }
        .style5
        {
            width: 402px;
        }
        .style6
        {
            height: 15px;
            width: 402px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="border-style: double; width: 758px;">
        <tr>
            <td colspan="3">
                <asp:Label ID="lblTieuDe" runat="server" style="text-decoration: underline" 
                        Text="QUẢN LÝ NGƯỜI DÙNG"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:RadioButton ID="rdoTimMaNguoiDung" runat="server" GroupName="GroupName" 
                    Text="Tìm mã người dùng" Checked="True" />
            </td>
            <td class="style5">
                <asp:TextBox ID="txtTimMaNguoiDung" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:RadioButton ID="rdoTimTenNguoiDung" runat="server" GroupName="GroupName" 
                    Text="Tìm tên người  dùng" />
            </td>
            <td class="style5">
                <asp:TextBox ID="txtTimTenNguoiDung" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td class="style5">
                <asp:Button ID="btnTimKiem" runat="server" Text="Tìm kiếm" Width="100px" 
                    onclick="btnTimKiem_Click" />
                <asp:Button ID="btnXoa" runat="server" Text="Xóa" Width="100px" 
                    onclick="btnXoa_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="gvNguoiDung" runat="server" AutoGenerateColumns="False" 
                    Width="100%" AllowPaging="True" PageSize="2" DataKeyNames="MaNguoiDung" 
                    onpageindexchanging="gvNguoiDung_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:CheckBox ID="chkMaNguoiDung" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMaNguoiDung_" runat="server" Text="Mã người dùng:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMaNguoiDung" runat="server" Text='<%# Eval("MaNguoiDung") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblTenNguoiDung_" runat="server" Text="Tên người dùng:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblTenNguoiDung" runat="server" 
                                                Text='<%# Eval("TenNguoiDung") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMaLoaiNguoiDung_" runat="server" Text="Mã loại người dung:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMaLoaiNguoiDung" runat="server" 
                                                Text='<%# Eval("MaLoaiNguoiDung") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMaPhong_" runat="server" Text="Mã phòng:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMaPhong" runat="server" Text='<%# Eval("MaPhong") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMaChucVu_" runat="server" Text="Mã chức vụ:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMaChucVu" runat="server" Text='<%# Eval("MaChucVu") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblMatKhau_" runat="server" Text="Mật khẩu"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMatKhau" runat="server" Text='<%# Eval("MatKhau") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblDienThoaiDiDong_" runat="server" Text="Điện thoại di động:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblDienThoaiDiDong" runat="server" 
                                                Text='<%# Eval("DienThoaiDiDong") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblDienThoaiNhaRieng_" runat="server" 
                                                Text="Điện thoại nhà riêng:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblDienThoaiNhaRieng" runat="server" 
                                                Text='<%# Eval("DienThoaiNhaRieng") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblEmail_" runat="server" Text="Email:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblEmail" runat="server" Text='<%# Eval("Email") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblBiXoa_" runat="server" Text="Bị xóa:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblBiXoa" runat="server" Text='<%# Eval("BiXoa") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            <asp:HyperLink ID="hlnkSua" runat="server" 
                                                NavigateUrl='<%# "CapNhatNguoiDung.aspx?MaNguoiDung=" + Eval("MaNguoiDung") %>'>Sửa</asp:HyperLink>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td class="style4" colspan="3">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4" colspan="3">
                <asp:Label ID="lblThemNguoiDungMoi" runat="server" Text="THÊM NGƯỜI DÙNG MỚI"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="lblMaNguoiDung" runat="server" Text="Mã người dùng:"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="txtMaNguoiDung" runat="server"></asp:TextBox>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="lblTenNguoiDung" runat="server" Text="Tên người dùng:"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="txtTenNguoiDung" runat="server"></asp:TextBox>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="lblMaLoaiNguoiDung" runat="server" Text="Mã loại người dùng:"></asp:Label>
            </td>
            <td class="style6">
                <asp:DropDownList ID="drplstMaLoaiNguoiDung" runat="server">
                </asp:DropDownList>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="lblMaPhong" runat="server" Text="Mã phòng:"></asp:Label>
            </td>
            <td class="style6">
                <asp:DropDownList ID="drplstMaPhong" runat="server">
                </asp:DropDownList>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="lblMaChucVu" runat="server" Text="Mã chức vụ:"></asp:Label>
            </td>
            <td class="style6">
                <asp:DropDownList ID="drplstMaChucVu" runat="server">
                </asp:DropDownList>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="lblMatKhau" runat="server" Text="Mật khẩu"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="txtMatKhau" runat="server" TextMode="Password"></asp:TextBox>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="lblNhapLaiMatKhau" runat="server" Text="Nhập lại mật khẩu"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="txtNhapLaiMatKhau" runat="server" TextMode="Password"></asp:TextBox>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="lblDienThoaiDiDong" runat="server" Text="Điện thoại di  động:"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="txtDienThoaiDiDong" runat="server"></asp:TextBox>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="lblDienThoaiNhaRieng" runat="server" 
                    Text="Điện thoại nhà riêng:"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="txtDienThoaiNhaRieng" runat="server"></asp:TextBox>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="lblEmail" runat="server" Text="Email:"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                <asp:Label ID="lblBiXoa" runat="server" Text="Bị xóa:"></asp:Label>
            </td>
            <td class="style6">
                <asp:DropDownList ID="drplstBiXoa" runat="server">
                    <asp:ListItem Value="0">Chưa xóa</asp:ListItem>
                    <asp:ListItem Value="1">Đã xóa</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td class="style6">
                <asp:Button ID="btnThem" runat="server" Text="Thêm" Width="100px" 
                    onclick="btnThem_Click" />
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

